home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_06_04 / v6n4068a.txt < prev    next >
Text File  |  1989-09-26  |  2KB  |  29 lines

  1.                                     Table 1
  2.                 Interface Module Identifiers Accessible to
  3.                                 a Task Module
  4.  
  5.                 Identifier              Function
  6.                 void setcom(void)       Initializes the serial interface
  7.                                         for baud rate, etc.
  8.                 int rxready(void)       Returns nonzero if serial input
  9.                                         byte is available; 0 if not.
  10.                 int rxbyte(void)        Returns serial input byte.
  11.                 int txready(void)       Returns nonzero if serial output
  12.                                         byte can be accepted; 0 if not.
  13.                 void txbyte(int)        Sends a serial output byte.
  14.                 int kbhit(void)         Returns 1 if keyboard byte is
  15.                                         available; 0 if not.
  16.                 int getch(void)         Reads a keyboard byte.
  17.                 void putch(int)         Writes a byte to console screen.
  18.                 void cleanup(void)      Restores standard bootup
  19.                                         interrupt configuration.
  20.                 int comerror            Indicates receiver overrun error
  21.                                         (bit 0), parity error (bit 1),
  22.                                         framing error (bit 2), and
  23.                                         ring-buffer overflow (bit 3).
  24.  
  25.                 Note: All these identifiers should be declared as extern
  26.                 in a task module if modules are to be combined by
  27.                 linking.
  28.  
  29.